<!DOCTYPE html>
<html>
<head>
		<title>淘宝小赢家-新增记录</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
</head>
<body>
<script src="bootstrap/js/jquery.min.js"></script>
		<script src="bootstrap/js/bootstrap.js"></script>
<{include file='layouts/headNav.html'}>
<div class="container-fluid">
	<div class="row-fluid">
		<div class="span2">
			<{include file='layouts/leftNav.html'}>
			<!--Sidebar content-->
		</div>
		<div class="span10">
			<!--Body content-->
			<ul class="nav nav-tabs">
				<li><a href="<{spUrl c=$_controller a=index}>">列表</a></li>
				<li class="active"><a href="<{spUrl c=$_controller a=create}>">新增</a></li>
				<li><a href="<{spUrl c=$_controller a=search}>">查询</a></li>
			</ul>
			<form method="post" action="<{spUrl c=$_controller a=create}>">
				<fieldset>
				<table style="width:800px;">
					<tr>
					<{foreach from=$_attributes key=key item=attribute}>
					<td style="float:left;width: 80px;"><{$attribute}>:</td>
					<td style="float:left;width: 300px;">
						<{if isset($_attributeFormset) && isset($_attributeFormset[$key])}>
						<{cbForm moreParams=$_attributeFormset[$key] name="`$_controller`[`$key`]"}>
						<{else}>
						<input name="<{$_controller}>[<{$key}>]" type="text">
						<{/if}>
					</td>	
					<{/foreach}>
					</tr>
				</table>
					<button type="submit" class="btn btn-primary">新增</button>
					<!--<button type="reset" class="btn">重填</button>-->
				</fieldset>
			</form>
		</div>
	</div>
</div>
</body>
</html>